<html>
    <script>
    async function fn(){
        try{
            await new Promise((resolve,reject)=>{
                reject('fail')
                // throw new Error('fuck')
                // resolve('success')
            })
        }catch{
            console.log('catch')
        }
    }
    fn()

    </script>
</html>